import request from '@/utils/request'

// 查询治理，governance子列表
export function listSub(query) {
  console.log(query);
  return request({
    url: '/un/governancesub/list',
    method: 'get',
    params: query
  })
}

// 查询治理，governance子详细
export function getSub(gsId) {
  return request({
    url: '/un/governancesub/' + gsId,
    method: 'get'
  })
}

// 新增治理，governance子
export function addSub(data) {
  return request({
    url: '/un/governancesub/add',
    method: 'post',
    data: data
  })
}

// 修改治理，governance子
export function updateSub(data) {
  return request({
    url: '/un/governancesub/edit',
    method: 'post',
    data: data
  })
}

// 删除治理，governance子
export function delSub(gsId) {
  return request({
    url: '/un/governancesub/remove',
    method: 'post',
    data: { gsId: [gsId] }
  })
}
